import request from '@/utils/request'

// 查询调查攻略列表
export function listSurveystrategy(query) {
  return request({
    url: '/system/surveystrategy/list',
    method: 'get',
    params: query
  })
}

// 查询调查攻略详细
export function getSurveystrategy(id) {
  return request({
    url: '/system/surveystrategy/' + id,
    method: 'get'
  })
}
// 查询调查攻略详细
export function getSurveystrategyBySurveyTitle(surveytitle) {
  return request({
    url: '/system/surveystrategy/bysurveytitle/' + surveytitle,
    method: 'get'
  })
}

// 新增调查攻略
export function addSurveystrategy(data) {
  return request({
    url: '/system/surveystrategy',
    method: 'post',
    data: data
  })
}

// 修改调查攻略
export function updateSurveystrategy(data) {
  return request({
    url: '/system/surveystrategy',
    method: 'put',
    data: data
  })
}

// 删除调查攻略
export function delSurveystrategy(id) {
  return request({
    url: '/system/surveystrategy/' + id,
    method: 'delete'
  })
}
